package com.ww.springboot.springstudy.spi;

import java.util.ServiceLoader;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-06-02 16:14
 */
public class Run {


    public static void main(String[] args) {
        ServiceLoader<IShout> shouts = ServiceLoader.load(IShout.class);
        for (IShout s : shouts) {
            s.shout();
        }
    }
}
